home *** CD-ROM | disk | FTP | other *** search
- property pSprite, pImageList, pCounter, pImage
-
- on beginSprite me
- pSprite = sprite(the currentSpriteNum)
- pImageList = []
- repeat with i = 71 to 82
- pImageList.add(member(i))
- end repeat
- pCounter = 1
- pImage = 1
- add(the actorList, pSprite)
- end
-
- on stepFrame me
- if pCounter = 60 then
- if pImage = pImageList.count then
- pImage = 1
- else
- pImage = pImage + 1
- end if
- pSprite.member = pImageList[pImage]
- pCounter = 1
- else
- pCounter = pCounter + 1
- end if
- end
-
- on endSprite me
- (the actorList).deleteOne(pSprite)
- end
-